<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if ($id = $route->getAdminId()){
	$db->sendQuery("delete from `content_errors` where `monitor_id` = '$id'");
	$db->sendQuery("delete from `content_monitor` where `id` = '$id' limit 1");
}

goToPage("/admin/monitor");
?>